package com.drug.mingkang.utils;
import java.math.BigDecimal;
import java.math.RoundingMode;

public class Shit {
    public static Double GetDouble(){
        int max=20,min=1;
        Double ran2 = (Double) (Math.random()*(max-min)+min);
        BigDecimal bigDecimal = new BigDecimal(ran2).setScale(2, RoundingMode.HALF_UP);
        double newDouble = bigDecimal.doubleValue();
        return newDouble;
    }
}
